package com.chatroomdemo.service;

import com.chatroomdemo.mapper.UserMapper;
import com.chatroomdemo.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Autowired
    private UserMapper userMapper;

    public User queryUserByName(String username) {
        return userMapper.queryUserByName(username);
    }

    public Integer insertUser(User user) {
        return userMapper.insertUser(user);
    }
}
